package com.swgk.core.util;

import android.app.Activity;
import android.os.Build;

/**
 * @Author : 作者
 * @Time : On 2020/11/9 15:47
 * @Page: On com.swgk.core.util
 * @Description : JudgeActivityUtils
 */
public class JudgeActivityUtils {



    /**
     * 判断Activity是否Destroy
     * @param
     * @return
     */
    public static boolean isDestroy(Activity mActivity) {
        if (mActivity== null || mActivity.isFinishing() || (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1 && mActivity.isDestroyed())) {
            return true;
        } else {
            return false;
        }
    }
}
